//
//  ZWChouTiTableViewCell.m
//  WanEr
//
//  Created by 高文萍 on 16/1/24.
//  Copyright © 2016年 ziwokeji. All rights reserved.
//

#import "ZWChouTiTableViewCell.h"
#import "ZWHeader.h"
@implementation ZWChouTiTableViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.imgChouTi = [[UIImageView alloc]init];
        [self.contentView addSubview:self.imgChouTi];
        
        self.chouTiCellText = [[UILabel alloc]init];
        self.chouTiCellText.textColor = [UIColor whiteColor];
        [self.contentView addSubview:self.chouTiCellText];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [self.imgChouTi mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.left.equalTo(@(12));
        make.width.height.equalTo(@(15));
    }];
    
    [self.chouTiCellText mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo((self.contentView.mas_centerY));
        make.left.equalTo(self.imgChouTi.mas_right).offset(10);
    }];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
